package com.entity;

public class Student {
    private String studentName;
    private String studentAge;
    private Teacher Teacher;

    public Student() {
    }

    public Student(String studentName, String studentAge, com.entity.Teacher teacher) {
        this.studentName = studentName;
        this.studentAge = studentAge;
        Teacher = teacher;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getStudentAge() {
        return studentAge;
    }

    public void setStudentAge(String studentAge) {
        this.studentAge = studentAge;
    }

    public com.entity.Teacher getTeacher() {
        return Teacher;
    }

    public void setTeacher(com.entity.Teacher teacher) {
        Teacher = teacher;
    }

    @Override
    public String toString() {
        return "{学生姓名：" + studentName +
                "，学生年龄：" + studentAge +
                "，任课老师：" + Teacher + "}";
    }
}
